package cn.fanqinghong.org.mapper;

import cn.fanqinghong.basic.mapper.BaseMapper;
import cn.fanqinghong.org.domain.Employee;
import cn.fanqinghong.org.domain.ShopAuditLog;
import cn.fanqinghong.org.query.EmployeeQuery;

import java.util.List;

/**
 * FAN
 * employee   mapper层
 * 2022/6/1  11:10
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * 通过用户名查询数据
     * @param username
     * @return
     */
    Employee lodaByUsername(String username);

    /**
     * 通过shopId查询数据
     * @param shopId
     * @return
     */
    Employee loadByShopId(Long shopId);

    /**
     * 通过logininfiId查询Employee数据
     * @param id
     * @return
     */
    Employee loadByLogininfoId(Long id);

    /**
     * 通过shopId查询所有员工
     * @param shopId
     * @return
     */
    List<Employee> loadByShopEmplyess(Long shopId);
}
